﻿<UserControl x:Class="Chapters.Chapter12.FallingObjects"
						 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
						 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<UserControl.Resources>
		<Style x:Key="{x:Type Ellipse}"
					 TargetType="Ellipse">
			<Setter Property="Fill"
							Value="IndianRed" />
			<Setter Property="Width"
							Value="20" />
			<Setter Property="Height"
							Value="20" />
			<Setter Property="Stroke"
							Value="Gray" />
		</Style>
	</UserControl.Resources>
	<DockPanel>
		<StackPanel Orientation="Horizontal"
								HorizontalAlignment="Center"
								DockPanel.Dock="Top">
			<Button Click="Randomize">Throw Balls</Button>
		</StackPanel>
		<Grid>
			<Border BorderBrush="Gray"
							BorderThickness="1"
							Margin="3"
							CornerRadius="3">
				<Canvas x:Name="_container">
					<Canvas.Background>
						<LinearGradientBrush StartPoint="0,0"
																 EndPoint="0,1">
							<GradientStop Color="LightGray"
														Offset="0" />
							<GradientStop Color="White"
														Offset="1" />
						</LinearGradientBrush>
					</Canvas.Background>
				</Canvas>
			</Border>
		</Grid>
	</DockPanel>
</UserControl>
